import { PartialType } from '@nestjs/mapped-types';
import { IsNotEmpty, IsNumber, IsOptional, IsString } from 'class-validator';
import { UpdateManagerDto } from './update-manager.dto';
import { ApiProperty } from '@nestjs/swagger';

export class PatchManagerDto extends PartialType(UpdateManagerDto) {
  @IsNumber()
  @ApiProperty({ description: '修改用户id' })
  @IsNotEmpty()
  id: number;

  @IsString()
  @IsOptional()
  province?: string;

  @IsString()
  @IsOptional()
  city?: string;

  @IsString()
  @IsOptional()
  role?: string;
}
